package com.cssl.controller;

import com.cssl.domain.dto.DtskeywordDto;
import com.cssl.openFeign.DtskeywordClient;
import com.cssl.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
@RequestMapping("/keyword")
public class DtskeywordController {
    @Autowired
    DtskeywordClient client;
    @PostMapping("/list")
    Result dtskeywordlist(@RequestBody DtskeywordDto dtskeywordDto){
        return client.dtskeywordlist(dtskeywordDto);
    }
    @DeleteMapping("/delete")
    Result keyworddelete(@RequestParam("ids") String ids){
        return client.keyworddelete(ids);
    };

    @PostMapping("/keywordupdate")
    Result keywordupdate(@RequestBody Map keywordupdate){
        return client.keywordupdate(keywordupdate);
    }
    @PostMapping("/addkeyword")
    Result addkeyword(@RequestBody Map addkeyword){
        return client.addkeyword(addkeyword);
    }
}
